package eagle

import (
	"github.com/cihub/seelog"
	"kyland.com/eagle/lib/config"
	"kyland.com/eagle/lib/exception"
)

func GetPort() string {
	eagleConfig, err := config.Config.Get("eagle")
	if err != nil {
		seelog.Errorf("get ipfs config failed: %v", err)
		exception.Throw(err)
	}

	return eagleConfig.UString("port")
}
